import javax.swing.JFrame;
import java.awt.Dimension;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Rectangle;
import javax.swing.JButton;


public class punctajfinal extends JFrame
{

	private JPanel jPanel = null;
	private JLabel jLabel = null;
	private JButton jButton = null;

	public punctajfinal() {
		super();
		initialize();
	}

	public  void punctaj(String val)
	{
		jLabel.setText("In total ati obtinut: "+ val+" puncte");
	}
	
	private void initialize() {
        this.setSize(new Dimension(288, 195));
        this.setContentPane(getJPanel());
        this.setTitle("punctaj final");
        this.setLocationRelativeTo(null);
			
	}

	private JPanel getJPanel() {
		if (jPanel == null) {
			jLabel = new JLabel();
			jLabel.setBounds(new Rectangle(27, 32, 225, 67));
			jLabel.setText("JLabel");
			jPanel = new JPanel();
			jPanel.setLayout(null);
			jPanel.add(jLabel, null);
			jPanel.add(getJButton(), null);
		}
		return jPanel;
	}

	private JButton getJButton() {
		if (jButton == null) {
			jButton = new JButton();
			jButton.setBounds(new Rectangle(66, 116, 143, 25));
			jButton.setText("Iesire");
			jButton.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					System.exit(0);
				}
			});
		}
		return jButton;
	}

}  
